 |
 |
 |
 |
#155211 - 10/28/02 12:57 AM
[6.3.x] [beta] ubb.db v2.9
|
I type Like navaho
Registered: 03/10/00
Posts: 25580
Loc: Texas
|
Name: ubb.db Description: Adds a plug-n-play file database to your site with ubb authentication. Original Author: Cal (thank you for permission to distribute  ) Credits and Thank yous: - LK for the majority of the grunt work updating from the v5 series it was written for and adding additional admin features - Mark Badolato for code optimization and putting up with my questions - Charles for code assistance - Burak for code assistance - Clankiller for bugfixes Link: http://www.ubbdev.com/ubb/upload/00000494/ubbdb.zip Demo: http://www.ubbdev.com/ubbcgi/db.cgi Requirement: UBB™ 6.3+ Install Notes: - Unzip the file and upload the cgi-bin contents to your ubb cgi directory in ascii, setting permissions to 755. Upload the /uploads folder to your ubb non-cgi directory and set permissions to 777. - Access your admin at db.cgi?action=admin there are some 'starter' categories in there you can edit. - A method was added to make using additional file types easir to upload. Line # 282: code:</font><hr /> my ($base, $path, $ext) = fileparse($zip, qr{.(zip|txt|jpg)});<hr /></blockquote>Change the (zip|txt|jpg) to add whatever file types you need. For example, to add .gif file, you would change that line to read: <blockquote><font class="small">code: [qb] my ($base, $path, $ext) = fileparse($zip, qr{.(zip|txt|gif|jpg)});[/qb] To-Do:- templates - better customization features - continuing optimizing code Changelog:- Nov. 29, 2002 - v2.9 - bugfixes and minor updates (thanks Clankiller) - Nov. 20, 2002 - v2.8 - removed unused code (thanks Burak  ) - Nov. 20, 2002 - v2.7 - Added easier method to upload additional file types (thanks Mark  ) - Nov. 11, 2002 - v2.5 - Wordlets Done - Oct. 28, 2002 - Initial Update for v6.3+ - Way way back - cal henderson wrote this for ubbcodehackers and ubb v5
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#155250 - 11/11/02 04:37 AM
Re: [6.3.x] [beta] ubb.db v2.9
|
Code Monkey
Registered: 05/01/01
Posts: 686
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#155267 - 11/20/02 12:30 PM
Re: [6.3.x] [beta] ubb.db v2.9
|
Addict
Registered: 05/29/00
Posts: 1820
Loc: Istanbul, Turkey
|
umm.. Allen, there is a lot of junk code in the files for example [lib.cgi], in sub CreateNewThread, this code looks like unnecessary? I couldnt locate any code using them: code:</font><hr /> #adjust bgcolor variables
if ($vars_style{BGColor} ne ""){$BGColor = qq(bgcolor="$vars_style{BGColor}");}
if ($vars_style{AltColumnColor1} ne ""){$AltColumnColor1 = qq(class="color1");}
if ($vars_style{AltColumnColor2} ne ""){$AltColumnColor2 = qq(class="color2");}
if ($vars_style{CategoryStripColor} ne ""){$CategoryStripColor = qq(bgcolor="$vars_style{CategoryStripColor}");}
if ($vars_style{TableColorStrip} ne ""){$TableColorStrip = qq(bgcolor="$vars_style{TableColorStrip}");}
if ($vars_style{PageBackground} ne ""){$PageBackground = qq(background="$vars_config{NonCGIURL}/$vars_style{PageBackground}");}
if ($vars_style{TableBorderColor} ne ""){
$TableWidth2 = "100%";
$BorderTop = $TBT;
$BorderBottom = $TBB;
} else {
$TableWidth2 = $vars_style{TableWidth};
$BorderTop = $TBT;
$BorderBottom = $TBB;
}<hr /></blockquote>also there are un-closed and un-openen curlies: in sub Lock, while is not closed but you' ve closed it in Unlock <blockquote><font class="small">code: [qb] sub Lock {
local ($lockname) = @_;
local ($endtime);
$endtime = 15;
$endtime = time + $endtime;
while (-e $lockname && time < $endtime) {
open (LOCKFILE, ">$lockname");
} #end lock sr
#############################################################################
sub Unlock {
local ($lockname) = @_;
close (LOCKFILE);
unlink ($lockname);
}
} # end Unlock sr[/qb] etc... etc...
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#155281 - 11/21/02 04:01 PM
Re: [6.3.x] [beta] ubb.db v2.9
|
Code Monkey
Registered: 05/01/01
Posts: 686
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#155303 - 01/08/03 05:43 AM
Re: [6.3.x] [beta] ubb.db v2.9
|
Member
Registered: 06/13/02
Posts: 100
|
quote: Originally posted by Sub Zero: Just by looking at the code quickly, they don't have the necessary routines and/or requires for decrypting the MD5 hash from the cookie. If they are presenting a login box, it doesn't need the MD5 routines, as the MD5 only affects the cookie. Just been testing with it, but to get access to the admin section u need the modifications to access it with md5. [/code]Needs to be in place of:
[code] Hopefully later on today i have the time to hack the other pieces. As far as i can see right now, it works 100% ok. She also the thread in beta mods 6.4.x (http://www.ubbdev.com/ubb/ultimatebb.php?ubb=get_topic;f=33;t=000014) The only think that is bugging me is that the tendb.cgi file does not contain the correct cat number in the field, so the top 10 is not correct. Later. TwsLex
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|